/**
 * 
 */
package com.shiplanet.service;

import java.io.File;
import java.util.List;

import com.shiplanet.entity.Post;

/**
 * @author joesong
 *
 */
public interface PostService {
	
	public Integer savePost(Post post);

	public Integer savePostWithPhoto(Post post, File[] photoFiles, String realRootPath) throws Exception;
	
	public Post getPost(Integer postId);

	public void updatePostWithPhoto(Post originalPost, Post newPost, File[] photoFiles, String realRootPath)throws Exception;
	
	public void addPostPhotoFiles(Post post, File[] photoFiles, String realRootPath) throws Exception;
	
	public void deletePost(Post post, String realRootPath);
	
	public long countPost();
	
	public List<Post> findPost(int page, int rows);
	
	public List<Post> findFeaturedPost();	
}
